package com.artwork.mapper;

import com.artwork.model.Goods;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> getList();

    List<Goods> getListByParams(Goods goods);

    List<Goods> getUserList(int sellerId);

    List<Goods> getListByType(int type);


    int pushGoods(int id, int status);

    int deleteGoods(int id);
}